﻿using WebApiThird.IService;

namespace WebApiThird.Service
{
    public class StudentFileService : IStudentFileService
    {
        public int Count { get; set; }
        public StudentFileService() {
        var files =  Directory.GetFiles(@"E:\study", "*.exe", SearchOption.AllDirectories);
            Count = files.Length;
        }
        public int GetFileCount()
        {
            return Count;
        }
    }
}
